package java3_23.Zoo;

public class Eagle extends Bird implements Flight{
    public Eagle(String name, String sex, String type) {
        super(name, sex, type);
    }

    @Override
    public void eat() {
        System.out.println(getType()+getName()+"正在吃肉");
    }

    @Override
    public void play() {
        System.out.println(getType()+getName()+"正在抓小鸡");
        Eagle.this.fly();
    }
    @Override
    public void fly() {
        System.out.println(getType()+getName()+"正在高速飞行");
    }
}
